import VueSocketIO from 'vue-socket.io'
import SocketIOClt from 'socket.io-client'

const socketIO = new VueSocketIO({
  debug: true,
  // connection: SocketIOClt.connect('https://49.232.183.3:22172', {
  //   path: '',
  //   transports: ['websocket', 'xhr-polling', 'jsonp-polling']
  // })
  connection: SocketIOClt.connect(window.location.host, {
    path: '',
    transports: ['websocket', 'xhr-polling', 'jsonp-polling'],
  })
})

export default socketIO
